package org.hy.service.mypage;

import java.util.List;

import org.hy.domain.mypage.MyCareerShow;
import org.hy.domain.mypage.MyCareerShowComment;
import org.hy.domain.mypage.MyCareerShowContent;


/**
 * 我的职业展示业务层接口
 * @author Tom.Feng
 *
 */
public interface IMyCareerShowService {
	/**
	 * 添加一个职业展示，成功返回1
	 * @return
	 */
	int addMyCareerShow(MyCareerShow myCareerShow,MyCareerShowContent myCareerShowContent);
	
	int addMyCareerShowComment(MyCareerShowComment myCareerShowComment);
	
	//int addMyCareerShowContent(MyCareerShowContent myCareerShowContent);
	
	int deleteMyCareerShow(int id,int OwnerId);
	
	/**
	 * 在评论列表里删除
	 * @param idMcs
	 * @param ownerId
	 * @param page
	 * @param size
	 * @param idMcsc
	 * @return
	 */
	int deleteMyCareerShowComment(int idMcs,int ownerId,int page,int size,int idMcsc);
	
	/**
	 * 
	 * @param idMcsc
	 * @param ownerId
	 * @return
	 */
	int deleteMyCareerShowComment(int idMcsc,int ownerId);
	
	MyCareerShow edit(int id,int OwnerId);
	
	MyCareerShowComment editComment(int id,int ownerId);
	
	MyCareerShow findMyCareerShowById(int id);
	
	MyCareerShow findMyCareerShowWithCommentsById(int id,int page,int size);
	
	MyCareerShow findMyCareerShowWithDefaultCommentsById(int id,int page,int size);
	
	List<MyCareerShow> findMyCareerShowWithDefaultCommentsByUid(int uid,int page,int size);
}
